<template>
  <div id="member_content">
    <div class="header">
      <el-row type="flex">
        <el-row type="flex">
          <el-input
            v-model="queryList.keyword"
            size="small"
            clearable
            placeholder="会员名称/等级"
          />
          <el-button
            class="searchBtn"
            size="small"
            type="primary"
            @click="handleSearch"
          >搜索</el-button>
          <el-button
            class="addTeachBtn"
            size="small"
            type="primary"
            @click="addMemberLevel"
          >添加会员等级</el-button>
        </el-row>
      </el-row>
    </div>
    <el-table
      :data="memberList"
      border
      fit
      highlight-current-row
      style="width: 100%"
      :element-loading-text="g.loadingStr"
      :header-cell-style="{ background: g.mainColor }"
    >
      <el-table-column label="序号" align="center" fixed>
        <!-- <template slot-scope="{ $index }">
          <span>{{ $index + 1 }}</span>
        </template> -->
        <!-- <template slot-scope="{ row }"> -->
        <template>
          <span />
        </template>
      </el-table-column>
      <el-table-column label="机构logo" align="center">
        <template>
          <span />
        </template>
      </el-table-column>
      <el-table-column label="机构名称" align="center">
        <template>
          <span />
        </template>
      </el-table-column>
      <el-table-column label="机构地址" align="center">
        <template>
          <span />
        </template>
      </el-table-column>
      <el-table-column label="机构负责人" align="center">
        <template>
          <span />
        </template>
      </el-table-column>
      <el-table-column label="手机号" align="center">
        <template>
          <span />
        </template>
      </el-table-column>
      <el-table-column label="会员名称" align="center">
        <template>
          <span />
        </template>
      </el-table-column>
      <el-table-column label="会员等级" align="center">
        <template>
          <span />
        </template>
      </el-table-column>
      <el-table-column label="开通时间" align="center">
        <template>
          <span />
        </template>
      </el-table-column>
      <el-table-column label="剩余天数" align="center">
        <template>
          <span />
        </template>
      </el-table-column>
      <el-table-column label="状态" align="center">
        <template>
          <span />
        </template>
      </el-table-column>
      <el-table-column label="操作" align="center">
        <template>
          <el-button type="primary">启用</el-button>
        </template>
      </el-table-column>
    </el-table>
    <pagination
      v-show="total > 0"
      :total="total"
      :page.sync="queryList.currentPage"
      :limit.sync="queryList.pageSize"
      @pagination="getList"
    />
  </div>
</template>

<script>
import Pagination from '@/components/Pagination' // secondary package based on el-pagination
export default {
  components: { Pagination },
  data() {
    return {
      queryList: {
        keyword: '',
        currentPage: 1,
        pageSize: 10
      },
      total: 1,
      memberList: null
    }
  },
  methods: {
    getList() {},
    handleSearch() {},
    getMemberList() {},
    addMemberLevel() {}
  }
}
</script>

<style scoped lang='scss'>
#member_content {
  padding: 15px;
  .header {
    margin-bottom: 15px;
    .searchBtn {
      margin-left: 15px;
    }
  }
}
</style>
